<?php

namespace app\api\validate;

use think\Validate;

class Code extends Validate
{
    protected $rule = [
        ['phone',      'require',       '请先输入手机号'],
        ['code',       'require',       '验证码不能为空'],
    ];

    protected $scene = [
        'sms'          => ['phone'],
        'verify'       => ['phone', 'code'],
    ];
}
